#include "widget.h"
#include "ui_widget.h"
#include <QPushButton>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton* pushButton = new QPushButton(this);
    pushButton->setGeometry(0,0,100,100);
    pushButton->setText("按钮");
    QString style = "QPushButton{color:red;font-size:20px;background-color:blue;}";
    style+="QPushButton{margin:10px 10px;}";
    //style+="QPushButton{border:green solid 20px}";
    style+="QPushButton{border-width:20px;border-color:green;border-style:solid;}";
    this->setStyleSheet(style);
}

Widget::~Widget()
{
    delete ui;
}

